#ifndef TXREMOTE_H_
#define TXREMOTE_H_

#include "stm32f10x.h"

#define AT24C02ADDR_ROLL_OFFSET 0
#define AT24C02ADDR_PITCH_OFFSET 2

typedef struct
{
    int16_t roll;
    int16_t pitch;
    int16_t thr;
    int16_t yaw;
    int16_t aux1;
    int16_t aux2;
    int16_t aux3;
    int16_t aux4;
} _st_TxRemote;

typedef struct
{
    int16_t state;
    float roll;
    float pitch;
    float yaw;
} _st_RxRemote;

void txRemote_fliterInit(void);
void txRemote_send(void);
void txRemote_loadOffset(void);

#endif /* TXREMOTE_H_ */
